const LOGINSTATE = 'LOGINSTATE'
const USERINFO = 'USERINFO'
const SHOWSTATE = 'SHOWSTATE'
const SHOWREGSTATE = 'SHOWREGSTATE'
const SHOWLOADING = 'SHOWLOADING'

export const modifyLoginState = (stateValue) => {
    return { 'type': LOGINSTATE, stateValue }
}

export const login = (account, password) => {
    return { 'type': USERINFO, info: { account, password } }
}

export const show = (showState) => {
    return { 'type': SHOWSTATE, showState }
}

export const showReg = (showRegState) => {
    return { 'type': SHOWREGSTATE, showRegState }
}

export const showLoading = (loginState) => {
    return { 'type': SHOWLOADING, loginState }
}